#ifndef HC_SWAP_HC
#define HC_SWAP_HC

class hcSwap
{
public:
	template <class T>
	static void swap ( T& a, T& b )
	{
		T c(a); a=b; b=c;
	}
	
	static void swap(unsigned char *a,unsigned char *b,int len)
	{
		int len2 = len - 1;
		for(int i = 0 ; i < len; i++)
		{
			unsigned char tmp = a[i];
			a[i] = b[i];
			b[i] = tmp;
		}
	}
};
#endif
